xen/arm: mm: Remove special case for CPU0 in dump_hyp_walk()
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 19 Nov 2020 19:07:46 +0000 (19:07 +0000)
committerJulien Grall <jgrall@amazon.com>
Sat, 23 Jan 2021 11:41:29 +0000 (11:41 +0000)
commitd90390d031554337f4fc9c98045d5a9ef71e6f23
treec41f8055dc5d8aced5ffddfe63342c55db11b362
parent7a02176b13f31185dd37323d61814ca3e54a80d6
xen/arm: mm: Remove special case for CPU0 in dump_hyp_walk()

There is no need to have a special case for CPU0 when converting the
page-table virtual address into a physical address. The helper
virt_to_maddr() is able to translate any address as long as the root
page-tables is mapped in the virtual address. This is the case for all
the CPUs at the moment.

So use the same BUG_ON() regardless the CPU.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
[julien: Rework the commit message]
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/mm.c